package com.mark.mall.admin.platform.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 销售单表
 * </p>
 *
 * @author admin
 * @since 2021-02-28
 */
@TableName(value = "t_order")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "Order对象", description = "销售单表")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "id")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "会员id")
    @TableField("memberid")
    private String memberid;

    @ApiModelProperty(value = "销售单编号")
    @TableField("c_orderno")
    private String orderno;

    @ApiModelProperty(value = "销售单价格")
    @TableField("c_oprice")
    private BigDecimal price;

    @ApiModelProperty(value = "销售单创建时间")
    @TableField(value = "c_createTime", fill = FieldFill.INSERT)
    private LocalDateTime createtime;

    @ApiModelProperty(value = "销售单状态")
    @TableField(value = "c_state", select = false, fill = FieldFill.INSERT)
    private String state;

}
